package com.ai.enviro.exception;


import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 业务逻辑异常 Exception
 */
@Data
@EqualsAndHashCode(callSuper = true)
public abstract class BaseException extends RuntimeException {

    public abstract String getCode();

    public abstract BaseException setCode(String code);

    @Override
    public abstract String getMessage();

    public abstract BaseException setMessage(String message);

}
